#! /bin/bash

# 根目录
ROOT_PATH=$(dirname "$(dirname "$PWD")")
echo "root path: $ROOT_PATH"
sleep 2

echo "=================================> build backstage-management-system ui..."
cd $ROOT_PATH/fast-dev-ui/backstage-management-system && yarn install && yarn build server
cp -r $ROOT_PATH/fast-dev-ui/backstage-management-system/dist $ROOT_PATH/fast-dev-cloud/deploy/nginx/html/dist
